package com.winchain.chainbill.bill.base.service.impl;

import com.shell.bee.persistence.service.impl.PersistentServiceImpl;
import com.winchain.chainbill.bill.base.dao.CbDfrlDao;
import com.winchain.chainbill.bill.base.po.CbDfrl;
import com.winchain.chainbill.bill.base.service.CbDfrlService;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("cbDfrlService")
public class CbDfrlServiceImpl extends PersistentServiceImpl<CbDfrl> implements CbDfrlService {
	@Autowired
	private CbDfrlDao cbDfrlDao;

	public List<CbDfrl> selectExpDlyInsBills(String expDate, String grpId, String dfrlState, List<String> notInStates) {
		return this.cbDfrlDao.selectExpDlyInsBills(expDate, grpId, dfrlState, notInStates);
	}

	public CbDfrl selectAndLockByKey(String dfrlId) {
		return this.cbDfrlDao.selectAndLockByKey(dfrlId);
	}
}
